<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>登录页面</title>
    <script src="/js/jquery-3.4.1.js"></script>
</head>
<body>
<h1>授权登录中心</h1>
<form>
    登录名：<input id="username" type="text"/>
    密码：<input id="password" type="password"/>
</form>
<button type="button" onclick="login()">登录</button>
<script>
    function login(){
        var username = $("#username").val();
        var password = $("#password").val();
        $.ajax({
            url:"http://localhost:18090/login",
            type:"POST",
            data:{"username":username,"password":password},
            success:function (result) {
                alert(result);
            }
        });
    }
</script>
</body>
</html>